<template>
  <view>
    进去item页面
  </view>
  <!-- <view :data-function="module.function" @click="handleTap"> -->
  <view>

    <!-- 自定义盒子 -->
    <!-- <block v-if="module.type==0">
      <view :class="module.class" :style="module.style">
        <block v-if="module.children.length!=0" v-for="(moduleItem,index) in module.children"
          :key="moduleItem.moduleId">
          <item :module="moduleItem"></item>
        </block>
      </view>
    </block> -->

    <!-- 轮播图 -->
    <!-- <block v-if="module.type==1">
      <view :class="module.class" v-if="module.data.src.length!=0">
        <view>
          轮播图
        </view>
        <image :src="module.data.src[0]" mode=""></image>
        <t-swiper current="0" autoplay="true" duration="1000" interval="2000" :list="module.data.src"
          paginationPosition="bottom-right" :navigation="{ type: 'none' }" />
      </view>
    </block> -->

    <!-- 导航按钮 -->
    <!-- <block v-if="module.type==2">
      <view>
        导航按钮
      </view>
      <view :class="module.class" :style="module.style">
        <block v-if="module.children.length!=0" v-for="(moduleItem,index) in module.children"
          :key="moduleItem.moduleId">
          <item :module="moduleItem"></item>
        </block>
      </view>
    </block> -->

    <!-- tdesign按钮（未测试） -->
    <!-- <block v-if="module.type==3">
      <t-button :class="module.class" :style="module.style" theme="primary" shape="round" size="large" @click="submit"
        :open-type="module.actionType">{{module.data.title}}</t-button>
    </block> -->

    <!-- 纯图片 -->
    <!-- <block v-if="module.type==4">
      <block v-if="module.data.src.length!=0" v-for="(imageItem,index) in module.data.src" :key="imageItem.order">
        <image :style="module.style" :src="imageItem" :mode="module.mode" />
      </block>
    </block> -->

    <!-- 纯文章 -->
    <!--  <block v-if="module.type==5">
      <view :style="module.style">
        <rich-text :nodes="module.data.innerHTML" />
      </view>
    </block> -->

    <!-- 图片按钮 -->
    <!-- <block v-if="module.type==6">
      <view :class="module.class" :style="module.style">
        <image :src="module.data.src[0]" :mode="module.mode" style="width: 48px;height: 48px;margin-bottom: 5px;" />
        <text>{{module.data.text}}</text>
      </view>
    </block> -->

    <!-- 搜索框（未测试） -->
    <!-- <block v-if="module.type==7">
      <view :class="module.class" :style="module.style">
        <view class="example-search">
          <t-search :placeholder="module.data.text" />
        </view>
      </view>
    </block> -->

    <!--输入框（未测试） -->
    <!-- <block v-if="module.type==8">
      <view :class="module.class" :style="module.style">
        <t-input :label="module.data.title" :placeholder="module.data.text" />
      </view>
    </block> -->

    <!-- 标签页tab切换 -->
    <!-- <block v-if="module.type==9">
      <t-tabs :defaultValue="module.children[0].moduleId" @change="onTabsChange" @click="onTabsClick"
        t-class="custom-tabs" :style="module.style">
        <block v-for="(tabItem,index) in module.children" :key="tabItem.moduleId">
          <t-tab-panel :label="tabItem.data.title" :value="tabItem.moduleId" v-if="tabItem.show==1">
            <view v-if="tabItem.children.length!=0" v-for="(panelItem,index) in tabItem.children"
              :key="panelItem.moduleId" :style="tabItem.style">
              <item :module="panelItem"></item>
            </view>
          </t-tab-panel>
        </block>
      </t-tabs>
    </block> -->

    <!-- 标题 -->
    <!-- <block v-if="module.type==10">
      <view class="title" :style="module.style">
        <view v-if="module.left.show" :style="module.left.style"></view>
        <view style="margin: 0 30rpx;font-size: 18px;font-weight: 500;">{{module.data.title}}</view>
        <view v-if="module.right.show" :style="module.right.style"></view>
      </view>
    </block> -->

    <!-- 视频 -->
    <!-- <block v-if="module.type==11">
      <video :id="module.moduleId" :style="module.style" :src="module.data.video" show-center-play-btn="false" controls
        custom-cache="true" :poster="module.data.src[0]"></video>
    </block> -->

    <!-- list列表单位 -->
    <!-- <block v-if="module.type==12">
      <view :style="module.style">
        <t-row>
          <t-col span="11" t-class="dark">
            <view style="width: 90%;padding-top: 90%;position: relative;overflow: hidden;">
              <view style="position: absolute; top: 0;bottom: 0;left: 0;right: 0;">
                <image style="width:100%;height: 100%;border-radius: 8px 8px 8px 8px;" :src="module.data.src[0]" />
              </view>
            </view>
          </t-col>
          <t-col span="13" t-class="dark">
            <view style="width: 100%;padding-top: 75%;position: relative;">
              <view style="position: absolute;top: 0;bottom: 0;left: 0;right: 0;">
                <view
                  style="width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: space-between;">

                  <view
                    style="width: 100%;font-size: 15px;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;margin-top: 10px;">
                    {{module.data.title}}
                  </view>
                </view>
              </view>
            </view>
          </t-col>
        </t-row>
      </view>
    </block> -->
  </view>
</template>

<script setup>
  import item from "../item/item.vue"

  const {
    module
  } = defineProps({
    module: {
      type: Object,
      require: true,
      default: () => {}
    }
  })
</script>

<style>

</style>